import Vue from 'vue'
import Router from 'vue-router'
import routes from './routes'

const routerPush = Router.prototype.push
Router.prototype.push = function(route) {
    return routerPush.call(this, route).catch(err => err)
}

Vue.use(Router)
const route = new Router({
    mode: 'history',
    routes:routes
})

export default route
